package com.jiangxfei.mymvp.di.module;

import android.content.Context;

import com.jiangxfei.mymvp.net.RepositoryManager;

import javax.inject.Named;
import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;

@Module
public class RepositoryManagerModule {

    @Singleton
    @Provides
    public RepositoryManager providerRepositoryManager(Retrofit.Builder rb, @Named("default") OkHttpClient okHttpClient, Context mContext) {
        return new RepositoryManager(rb,okHttpClient,mContext);
    }
}
